package com.lkqandzzy.service;

import com.lkqandzzy.entity.Dormitory;
import com.lkqandzzy.entity.PageInfo;

import java.util.List;

/**
 * @author 邹靓仔and小帅龙
 * @date 2019/12/29-13:34-星期日-DormitoryManager-ssm
 */
public interface DormitoryService {
    //分页查询
     PageInfo<Dormitory> findPageInfo(String a_name, Integer s_dormitoryid, String d_dormbuilding, Integer pageIndex, Integer pageSize);

     int addDormitory(Dormitory dormitory);    //添加宿舍信息
     int deleteDormitory(Integer d_id);   //删除宿舍信息
     int updateDormitory(Dormitory dormitory); //修改宿舍信息
     Dormitory findDormitoryById(Integer d_id);

     List<Dormitory> findDormitoryStudent(Dormitory dormitory);//查询宿舍人员信息
     List<Dormitory> getAll();
}
